package com.heaven.ojcodesandbox.security;

import java.security.Permission;

/**
 * @Description 默认安全管理器
 * @Author HeavenDirt
 * @Date 2024/7/27 15:44
 */
public class DenySecurityManager extends SecurityManager {

    //禁用所有权限
    @Override
    public void checkPermission(Permission perm) {
        throw new SecurityException("不允许访问");
    }
}
